package com.aixin.csopequity.model;

public class SystemReturn {

    private String status;//返回状态
    private String content;//返回信息
    private static SystemReturn systemFalseReturn;
    private static SystemReturn systemTrueReturn;

    static {
        systemTrueReturn=new SystemReturn("SUCCESS","成功");
        systemFalseReturn=new SystemReturn("FALSE","失败");
    }


    public SystemReturn() {

    }
    public  SystemReturn(String status,String content) {
        this.status=status;
        this.content=content;
    }

    public static SystemReturn getSystemReturn(Boolean status) {
        if (status){
            return systemTrueReturn;
        }
        return systemFalseReturn;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public static SystemReturn getSystemFalseReturn() {
        return systemFalseReturn;
    }

    public static void setSystemFalseReturn(SystemReturn systemFalseReturn) {
        SystemReturn.systemFalseReturn = systemFalseReturn;
    }

    public static SystemReturn getSystemTrueReturn() {
        return systemTrueReturn;
    }

    public static void setSystemTrueReturn(SystemReturn systemTrueReturn) {
        SystemReturn.systemTrueReturn = systemTrueReturn;
    }
}
